'use strict';

const express = require('express');
const gputility = require('../../common/gputility');
const logger = require('../../common/logutility').logger('delExpCmp');
let router = express.Router();

router.get('/', function(req, res) {
    gputility.excuteGP(getGP(req, res));
});

function* getGP(req, res) {
    try {
        req.session.expDel = null;
        res.render('./cou/delExpCmp');
    } catch (e) {
        logger.error(e);
        res.redirect('/error');
    }
}

module.exports = router;